<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绿能智链 - NFT详情</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8faf9;
            color: #333;
            min-height: 100vh;
        }

        .app-header {
            background: linear-gradient(135deg, #1a8754, #0d6e3d);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .data-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        .tab-bar {
            background-color: white;
            border-top: 1px solid #e5e7eb;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 8px 0;
            color: #6b7280;
        }
        .tab-item.active {
            color: #10b981;
        }
        .content-area {
            height: calc(100vh - 60px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .model-viewer {
            background: linear-gradient(to bottom, #e6f7ff, #f0f9ff);
            border-radius: 12px;
            overflow: hidden;
            position: relative;
        }
        .model-controls {
            position: absolute;
            bottom: 10px;
            right: 10px;
            display: flex;
            gap: 8px;
        }
        .model-control-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .chart-container {
            height: 120px;
            background: linear-gradient(90deg, #e6f7ff 0%, #ccf2ff 50%, #e6f7ff 100%);
            border-radius: 8px;
            position: relative;
            overflow: hidden;
        }
        .chart-line {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 50%;
            background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
            background-size: cover;
            background-position: center;
            opacity: 0.2;
        }
        .comment-item {
            border-bottom: 1px solid #f0f0f0;
        }
        .comment-item:last-child {
            border-bottom: none;
        }
    </style>
</head>
<body class="flex flex-col h-full">


    <!-- 应用头部 -->
    <header class="app-header p-4 text-white relative">
        <div class="flex justify-between items-center">
            <div class="flex items-center">
                <button class="mr-3">
                    <i class="fas fa-arrow-left"></i>
                </button>
                <h1 class="text-xl font-bold">NFT详情</h1>
            </div>
            <div class="flex space-x-4">
                <button>
                    <i class="fas fa-share-alt"></i>
                </button>
                <button>
                    <i class="fas fa-heart"></i>
                </button>
            </div>
        </div>
    </header>

    <!-- 主内容区域 -->
    <div class="content-area flex-1 p-4 relative">
        <!-- 风力发电站3D模型/实景图 -->
        <section class="mb-6">
            <div class="model-viewer h-56 mb-3">
                <img src="https://images.unsplash.com/photo-1466611653911-95081537e5b7?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80" alt="风力发电站" class="w-full h-full object-cover">
                <div class="model-controls">
                    <button class="model-control-btn">
                        <i class="fas fa-sync-alt"></i>
                    </button>
                    <button class="model-control-btn">
                        <i class="fas fa-expand"></i>
                    </button>
                </div>
            </div>
            <div class="flex justify-between items-center">
                <div>
                    <h2 class="text-xl font-bold">青海湖风力发电站</h2>
                    <p class="text-gray-600">青海省海南藏族自治州</p>
                </div>
                <div class="bg-green-100 text-green-800 px-3 py-1 rounded-full text-sm font-medium">
                    已认证
                </div>
            </div>
        </section>

        <!-- 电力数据面板 -->
        <section class="mb-6">
            <h3 class="text-lg font-semibold mb-3">电力数据</h3>
            <div class="grid grid-cols-3 gap-3 mb-4">
                <div class="data-card p-3">
                    <div class="text-green-600 text-sm font-medium">当前发电量</div>
                    <div class="text-xl font-bold mt-1">245 <span class="text-sm font-normal">kWh</span></div>
                    <div class="text-xs text-gray-500 mt-1">↑ 5% 今日</div>
                </div>
                <div class="data-card p-3">
                    <div class="text-green-600 text-sm font-medium">历史收益</div>
                    <div class="text-xl font-bold mt-1">1.28 <span class="text-sm font-normal">ETH</span></div>
                    <div class="text-xs text-gray-500 mt-1">↑ 12% 本月</div>
                </div>
                <div class="data-card p-3">
                    <div class="text-green-600 text-sm font-medium">碳减排</div>
                    <div class="text-xl font-bold mt-1">156 <span class="text-sm font-normal">kg</span></div>
                    <div class="text-xs text-gray-500 mt-1">本周累计</div>
                </div>
            </div>
            <div class="chart-container p-3">
                <div class="flex justify-between items-center mb-2">
                    <div class="text-sm font-medium">发电量趋势</div>
                    <div class="text-xs text-gray-600">过去7天</div>
                </div>
                <div class="chart-line"></div>
                <div class="flex justify-between mt-2 text-xs text-gray-500">
                    <div>周一</div>
                    <div>周二</div>
                    <div>周三</div>
                    <div>周四</div>
                    <div>周五</div>
                    <div>周六</div>
                    <div>周日</div>
                </div>
            </div>
        </section>

        <!-- 购买选项 -->
        <section class="mb-6">
            <h3 class="text-lg font-semibold mb-3">购买选项</h3>
            <div class="bg-white rounded-lg p-4 shadow-sm">
                <div class="mb-4">
                    <label class="block text-sm font-medium text-gray-700 mb-1">选择电量</label>
                    <div class="flex items-center">
                        <button class="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">
                            <i class="fas fa-minus"></i>
                        </button>
                        <input type="text" value="100" class="mx-3 w-16 text-center border border-gray-300 rounded py-1">
                        <button class="w-8 h-8 rounded-full bg-green-600 text-white flex items-center justify-center">
                            <i class="fas fa-plus"></i>
                        </button>
                        <span class="ml-2 text-gray-600">kWh</span>
                    </div>
                </div>
                <div class="mb-4">
                    <label class="block text-sm font-medium text-gray-700 mb-1">支付方式</label>
                    <div class="flex space-x-2">
                        <button class="flex-1 py-2 bg-green-600 text-white rounded-lg flex items-center justify-center">
                            <i class="fab fa-ethereum mr-1"></i> ETH
                        </button>
                        <button class="flex-1 py-2 bg-gray-200 text-gray-700 rounded-lg flex items-center justify-center">
                            <i class="fas fa-yen-sign mr-1"></i> 法币
                        </button>
                    </div>
                </div>
                <div class="flex justify-between items-center mb-4">
                    <div class="text-gray-600">价格</div>
                    <div class="text-xl font-bold text-green-600">0.05 ETH</div>
                </div>
                <button class="w-full bg-green-600 text-white py-3 rounded-lg font-medium hover:bg-green-700 transition">
                    立即购买
                </button>
            </div>
        </section>

        <!-- 社区讨论区 -->
        <section class="mb-6">
            <div class="flex justify-between items-center mb-3">
                <h3 class="text-lg font-semibold">社区讨论</h3>
                <button class="text-green-600 text-sm font-medium">
                    <i class="fas fa-plus-circle mr-1"></i> 发表评论
                </button>
            </div>
            <div class="bg-white rounded-lg shadow-sm overflow-hidden">
                <!-- 电站运营方公告 -->
                <div class="bg-green-50 p-4 border-l-4 border-green-600">
                    <div class="flex items-start">
                        <div class="bg-green-600 text-white rounded-full w-8 h-8 flex items-center justify-center mr-3 flex-shrink-0">
                            <i class="fas fa-bullhorn"></i>
                        </div>
                        <div>
                            <div class="flex items-center">
                                <h4 class="font-medium">电站运营方公告</h4>
                                <span class="ml-2 text-xs text-gray-500">2023-10-15</span>
                            </div>
                            <p class="text-sm text-gray-700 mt-1">本月电站进行了设备升级，预计发电效率提升15%。感谢所有NFT持有者的支持！</p>
                        </div>
                    </div>
                </div>
                <!-- 用户评论 -->
                <div class="comment-item p-4">
                    <div class="flex">
                        <img src="https://images.unsplash.com/photo-1570295999919-56ceb5ecca61?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="用户头像" class="w-8 h-8 rounded-full mr-3">
                        <div class="flex-1">
                            <div class="flex justify-between items-center">
                                <h4 class="font-medium">王小明</h4>
                                <span class="text-xs text-gray-500">2023-10-12</span>
                            </div>
                            <p class="text-sm text-gray-700 mt-1">投资这个电站NFT是我今年做的最好的决定，每月都有稳定的收益。</p>
                            <div class="flex items-center mt-2 text-sm text-gray-500">
                                <button class="flex items-center mr-4">
                                    <i class="far fa-thumbs-up mr-1"></i> 12
                                </button>
                                <button class="flex items-center">
                                    <i class="far fa-comment mr-1"></i> 回复
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="comment-item p-4">
                    <div class="flex">
                        <img src="https://images.unsplash.com/photo-1494790108377-be9c29b29330?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80" alt="用户头像" class="w-8 h-8 rounded-full mr-3">
                        <div class="flex-1">
                            <div class="flex justify-between items-center">
                                <h4 class="font-medium">李小红</h4>
                                <span class="text-xs text-gray-500">2023-10-10</span>
                            </div>
                            <p class="text-sm text-gray-700 mt-1">请问电站的维护周期是多久？会影响到我们的收益吗？</p>
                            <div class="flex items-center mt-2 text-sm text-gray-500">
                                <button class="flex items-center mr-4">
                                    <i class="far fa-thumbs-up mr-1"></i> 8
                                </button>
                                <button class="flex items-center">
                                    <i class="far fa-comment mr-1"></i> 回复
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- 底部Tab栏 -->
    <div class="tab-bar h-16 flex justify-around items-center">
        <a href="home.html" class="tab-item">
            <i class="fas fa-home text-xl"></i>
            <span class="text-xs mt-1">首页</span>
        </a>
        <a href="nft_detail.html" class="tab-item active">
            <i class="fas fa-store text-xl"></i>
            <span class="text-xs mt-1">市场</span>
        </a>
        <a href="wallet.html" class="tab-item">
            <i class="fas fa-solar-panel text-xl"></i>
            <span class="text-xs mt-1">我的资产</span>
        </a>
        <a href="exchange.html" class="tab-item">
            <i class="fas fa-exchange-alt text-xl"></i>
            <span class="text-xs mt-1">兑换</span>
        </a>
    </div>
</body>
</html>